﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WareHouse.Domain.Finances
{
    /// <summary>
    /// 财务记账表
    /// </summary>
    [SugarTable("Accounting")]
    public class Accounting
    {
        /// <summary>
        /// 财务记账ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long AccountingId { get; set; }

        /// <summary>
        /// 记账流水号
        /// </summary>
        public string AccountingCode { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 财务类别ID 外键
        /// </summary>
        public int FinanceTypeId { get; set; }

        /// <summary>
        /// 收款方/付款方
        /// </summary>
        public string PayOrCollection { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 付款金额
        /// </summary>
        public decimal PayMoney { get; set; }

        /// <summary>
        /// 付款时间
        /// </summary>
        public DateTime PayTime { get; set; }

        /// <summary>
        /// 收/付款机构
        /// </summary>
        public decimal PayOrPayeeInstitution { get; set; }
    }
}
